package com.marcelovelit.android;

import android.app.Activity;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class MenuActivity extends Activity {

	RelativeLayout btn_progresosem, btn_medico, btn_compartir, btn_misDatos,
			btn_servicio, btn_mas;
	Intent intent = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);

		TextView txtTitulo=(TextView) findViewById(R.id.titulo_cab);
		txtTitulo.setText("MI EMBARAZO");

		btn_progresosem = (RelativeLayout) findViewById(R.id.btn_progresosem);
		btn_medico = (RelativeLayout) findViewById(R.id.btn_medico);

		btn_compartir = (RelativeLayout) findViewById(R.id.btn_notifiNaci);
//		btn_misDatos = (RelativeLayout) findViewById(R.id.btn_misDatos);

//		btn_servicio = (RelativeLayout) findViewById(R.id.btn_servicios);
		btn_mas = (RelativeLayout) findViewById(R.id.btn_mas);

		btn_progresosem.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
intent=new Intent(MenuActivity.this,ProgresoSemanaActivity.class);
startActivity(intent);
			}
		});

	

		btn_medico.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				intent=new Intent(MenuActivity.this,MedicoActivity.class);
				startActivity(intent);
			}
		});

		btn_compartir.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				intent=new Intent(MenuActivity.this,ComparteActivity.class);
				startActivity(intent);
			}
		});

//		btn_misDatos.setOnClickListener(new OnClickListener() {
//
//			public void onClick(View v) {
//				// TODO Auto-generated method stub
//				intent=new Intent(MenuActivity.this,MisDatosActivity.class);
//				startActivity(intent);
//			}
//		});

		
//		btn_servicio.setOnClickListener(new OnClickListener() {
//
//			public void onClick(View v) {
//				// TODO Auto-generated method stub
//				intent=new Intent(MenuActivity.this,ServicioActivity.class);
//				startActivity(intent);
//			}
//		});
		
		btn_mas.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				intent=new Intent(MenuActivity.this,MasActivity.class);
				startActivity(intent);
			}
		});

	}

	@Override
	public void onAttachedToWindow() {

		super.onAttachedToWindow();

		Window window = getWindow();

		window.setFormat(PixelFormat.RGBA_8888);

	}

}
